package com.example.curriculum.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.*;

@Table(name = "User")
@Entity
public class User {
    @Id
    @Column(name = "UserId")
    @JsonProperty("user_id")
    private String user_id; // 用户id
    @Column(name = "Password")
    @JsonProperty("password")
    private String password; // 用户密码

    public User() {
    }

    public User(String user_id, String password) {
        this.user_id = user_id;
        this.password = password;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
